package design.pattern.prototype.apply2;

import java.io.Serializable;

/**
 * @author AtoVio, Winter Yuan
 */
public class Citation implements Cloneable, Serializable {

    private Student student;

    public Citation() {
    }

    public Citation(Student student) {
        this.student = student;
    }

    public Student getStudent() {
        return student;
    }

    public void setStudent(Student student) {
        this.student = student;
    }

    @Override
    public String toString() {
        return "Citation{" +
                "student=" + student +
                '}';
    }

    @Override
    public Citation clone() throws CloneNotSupportedException {
        return (Citation) super.clone();
    }
}
